#include <bits/stdc++.h>
using namespace std;
int k;
int main(void){
    scanf("%d",&k);
    double s=0;
    double n=1;
    while(k>=s){
        s+=1.0/n;
        n++;
    }
    printf("%d\n",int(n-1));
    return 0;
}